import request from '@/utils/request'

const api = {
  login: '/cms/login/account',  //登录
  logout: '/cms/login/out',//登出
  verifyCode: '/cms/login/verifyCode', //验证码登录 

  updatePassword:'/cms/userPossword/updateLogin',// 更新密码 
  
}
//登录
export function login (parameter) {
  return request({
    url: api.login,
    method: 'post',
    data: parameter
  })
}
//退出登录
export function logout () {
  return request({
    url: api.logout,
    method: 'post',
  })
}
 
export function verifyCode (parameter) {
  return request({
    url: api.verifyCode,
    method: 'post',
    data: parameter
  })
}
 
export function updatePassword (parameter) {
  return request({
    url: api.updatePassword,
    method: 'post',
    data: parameter
  })
}
 
 